import Joi from 'joi';

// 'name',
// 'email',
// 'telphone',
// 'job',
// 'company',
// 'city',
// 'address',
// 'area',
// 'type',
// 'message'
export const schema = Joi.object().keys({
  name: Joi.string().required(),
  email: Joi.string()
    .email()
    .required(),
  telphone: [Joi.string().required(), Joi.number().required()],
  job: Joi.any(),
  company: Joi.any(),
  city: Joi.string().required(),
  address: Joi.any(),
  area: Joi.any(),
  type: Joi.number()
    .max(10)
    .min(0)
    .required(),
  message: Joi.any()
});
